<template>
  <div>
    <div class="fixHead">
      <div class="title">
        <span class="iconfont icon-jiantou" @click="$router.go(-1)"></span>
        <span class="icon-home" @click="$router.push('/')"></span>
        <h1>社群公告</h1>
        <span class="rightBtn" v-if="canEdit">完成</span>
      </div>
      <div style="height: 0.88rem;"></div>
    </div>
    <div class="notice">
      <textarea
        v-if="canEdit"
        placeholder="请填写社群公告内容"
        v-model="notice"
      ></textarea>
      <div v-else class="read">{{ notice }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  components: {},
  props: {},
  data: function() {
    return {
      canEdit: true,
      notice:
        "社群主可以直接编辑保存。社群成员可以看，非社群成员都不可看（包括社群追随者也不可以看）"
    };
  },
  mounted: function() {},
  methods: {}
};
</script>

<style scoped>
.fixHead .title .rightBtn {
  color: #deaa8a;
}
.notice {
  padding: 0.5rem;
}
.notice textarea {
  display: block;
  width: 100%;
  height: 6.1rem;
  font-size: 0.32rem;
  line-height: 0.64rem;
  color: #999999;
}
.notice textarea::-webkit-input-placeholder {
  color: rgba(153, 153, 153, 0.6);
}
.notice .read {
  font-size: 0.32rem;
  line-height: 0.64rem;
  color: #999999;
}
</style>
